package com.xlx.openLink.dao;

import com.xlx.openLink.entity.pojo.Device;

import com.xlx.openLink.entity.pojo.Port;
import com.xlx.openLink.vo.DevicePortVO;
import com.xlx.openLink.vo.RequestDevtLst;
import com.xlx.openLink.vo.RequestPortLst;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceMapper {
    int deleteByPrimaryKey(String pkGuid);

    int insert(Device record);

    int insertSelective(Device record);

    Device selectByPrimaryKey(String pkGuid);

    int updateByPrimaryKeySelective(Device record);

    int updateByPrimaryKey(Device record);

    Device selectByIp(String devIp);

    List<Device> selectAlllDev();

    int updateBatch(@Param("list") List<Device> list);

    List<Device> selectSwitchOnline();


    List<Device> selectSnmpDev();

    List<DevicePortVO> selectDevPortList();


    List<Device> listByPage(RequestDevtLst requestDevtLst);

    List<Device> selectByIpList(@Param("devIp") String devIp);

    int allDev();

    int allSwitch();

    int onLine();

    int allCamera();
}